package com.dmall.promotion.core;

import com.dmall.promotion.core.service.AaaService;
import com.dmall.promotion.core.service.CalculateService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author xiao1.wang
 * @date 2021/6/4 21:17
 */
@Service
public class PromotionEngine {
    @Resource
    private CalculateService calculateService;

    @Resource
    private AaaService aaaService;

    public int calculate(int num) {
        return calculateService.calculateAddition(1, num);
    }
}
